package com.zhengjiang.nacos.consumer.controller;

import com.zhengjiang.nacos.consumer.feign.FeignClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SayController
 * @Description
 * @Author zhengjiang(99514925 @ qq.com)
 * @Date 2020/4/17 9:54
 * @Version V1.0
 **/
@RestController
@RequestMapping("/consumer")
public class SayController {

    @Autowired
    FeignClientService feignClientService;

    @RequestMapping("/say")
    public String sayHello(){
        return feignClientService.hello();
    }
}
